# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=syncplay
pkgver=1.7.0
pkgrel=0
pkgdesc="Synchronize watching movies on mplayer2, vlc, mpv, and mpc-hc across many computers"
url="https://syncplay.pl/"
arch="noarch !armhf !riscv64" # riscv64, armhf - py3-pyside2
license="Apache-2.0"
depends="
	python3
	py3-twisted
	py3-pyside2
	"
makedepends="py3-setuptools_scm"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Syncplay/syncplay/archive/v$pkgver.tar.gz"
options="!check" # testing requires pip

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
f8fd57ca14daeeb7b9f1dc36dd49c1674e86548c2fcf8c3db27c76e54d5d64b40e5c56ecd49e591c3c1084c0efe5a10b1fed50fd8e28e42913d05d100c6952f2  syncplay-1.7.0.tar.gz
"
